import java.util.*;
import java.sql.*;
class JdbcDemo15 {

	public static void main(String[] args) throws Exception{
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");
		Scanner scan = new Scanner(System.in);
		System.out.println("input command");
		String cmd = scan.nextLine();
		PreparedStatement ps = cn.prepareStatement(cmd);
		boolean b = ps.execute();
		if(b==true)
			System.out.println("DRL");
	         	
		else
		{
			System.out.println("DML");
		}
		ps.close();
		cn.close();
		
		// TODO Auto-generated method stub

	}

}
